package com.mallotec.android.timenote.ui.adapter;

import android.view.View;

import com.mallotec.android.timenote.databinding.ItemTimeRecordBinding;
import com.mallotec.android.timenote.ui.adapter.base.BaseDataBindingHolder2;
import com.mallotec.android.timenote.viewmodel.TimenoteListViewModel;

import org.jetbrains.annotations.NotNull;

/**
 * @author reborn
 * @program TimeNote
 * @description
 * @create 2020-11-13 23:17
 **/
public class TimenoteDataBindingHolder extends BaseDataBindingHolder2<ItemTimeRecordBinding, TimenoteListViewModel> {

    public TimenoteDataBindingHolder(@NotNull View view) {
        super(view);
    }

    @Override
    public void bindViewModel(TimenoteListViewModel viewModel) {
        getDataBinding().setViewModel(viewModel);
        getDataBinding().executePendingBindings();
    }
}
